package com.ybzl.mini.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ybzl.mini.entity.MiniPyqImg;
import com.ybzl.mini.mapper.MiniPyqImgMapper;
import com.ybzl.mini.service.IMiniPyqImgService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/*
 * Desc： 污友圈关联的图片信息 服务类实现
 * @Author xxx
 * @Company yb.com
 * @Since  2024-09-19
 *
 */

@Slf4j
@Service
@Transactional
public class MiniPyqImgServiceImpl extends ServiceImpl<MiniPyqImgMapper, MiniPyqImg> implements IMiniPyqImgService {

    @Autowired
    private MiniPyqImgMapper miniPyqImgMapper;

    @Override
    public boolean deleteByFabuId(String id) {
        return 1 == miniPyqImgMapper.delete(new LambdaQueryWrapper<MiniPyqImg>().eq(MiniPyqImg::getFabuId, id));
    }
}
